package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备采集配置对象 dlldrinfo
 * 
 * @author yaozh
 * @date 2024-02-22
 */
public class DlldrInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 驱动设备ID，通讯驱动设备信息主键，递增 */
    @Excel(name = "接口编号")
    private Long drid;

    /** 接口名，驱动名称，设备名字。（与表drinfo的设备名业务意义不同） */
    @Excel(name = "接口名称")
    private String drname;

    /** 设备驱动ID（参考drllinfo表，用设备通讯驱动表drllinfo的drllid来填充） */
    @Excel(name = "设备驱动ID")
    private Long drllid;

    @Excel(name = "设备驱动")
    private String drllname;

    /** 通讯设备驱动类型，网络，串口，文件，内存。0--网络，1--串口， */
    @Excel(name = "驱动类型ID")
    private Long type;
    @Excel(name = "驱动类型")
    private String typeName;

    /** 通讯设备ip和端口，格式有192.168.2.200:30:0:1，非固定是这格式 */
    @Excel(name = "IP和端口(唯一)")
    private String ipport;

    /** 通讯设备com串口，如com1，com2，com3 */
    @Excel(name = "通讯串口")
    private String com;

    /** 波特率，可选值有1200，2400，4800，9600，19200，38400，76800，153600 */
    @Excel(name = "波特率")
    private String baudRate;

    /** 数据位，供选择的有7位，8位 */
    @Excel(name = "数据位")
    private Long dataBits;

    /** 停止位，可选值有1，1.5，2 */
    @Excel(name = "停止位")
    private String stopBits;

    /** 奇偶，校验位，可选值：0无，1奇校验，2偶校验 */
    @Excel(name = "校验位")
    private String parity;

    /** 循环，采集频率，采集周期，单位：毫秒 */
    @Excel(name = "采集频率(单位：毫秒)")
    private Long cycle;

    /** 通讯超时时间 */
    @Excel(name = "超时时间")
    private Long timeout;

    /** 串口通讯方式，串口通讯类型名称(rs-232,rs-485) */
    @Excel(name = "通讯方式")
    private String comtx;

    /** 设备所属的网络网关ID（非计算机的MAC地址） */
    @Excel(name = "网关ID")
    private Long macID;

    public void setDrid(Long drid) 
    {
        this.drid = drid;
    }

    public Long getDrid() 
    {
        return drid;
    }
    public void setDrname(String drname) 
    {
        this.drname = drname;
    }

    public String getDrname() 
    {
        return drname;
    }
    public void setDrllid(Long drllid) 
    {
        this.drllid = drllid;
    }

    public Long getDrllid() 
    {
        return drllid;
    }

    public String getDrllname() {
        return drllname;
    }

    public void setDrllname(String drllname) {
        this.drllname = drllname;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public void setIpport(String ipport) 
    {
        this.ipport = ipport;
    }

    public String getIpport() 
    {
        return ipport;
    }
    public void setCom(String com) 
    {
        this.com = com;
    }

    public String getCom() 
    {
        return com;
    }
    public void setBaudRate(String baudRate) 
    {
        this.baudRate = baudRate;
    }

    public String getBaudRate() 
    {
        return baudRate;
    }
    public void setDataBits(Long dataBits) 
    {
        this.dataBits = dataBits;
    }

    public Long getDataBits() 
    {
        return dataBits;
    }
    public void setStopBits(String stopBits) 
    {
        this.stopBits = stopBits;
    }

    public String getStopBits() 
    {
        return stopBits;
    }
    public void setParity(String parity) 
    {
        this.parity = parity;
    }

    public String getParity() 
    {
        return parity;
    }
    public void setCycle(Long cycle) 
    {
        this.cycle = cycle;
    }

    public Long getCycle() 
    {
        return cycle;
    }
    public void setTimeout(Long timeout) 
    {
        this.timeout = timeout;
    }

    public Long getTimeout() 
    {
        return timeout;
    }
    public void setComtx(String comtx) 
    {
        this.comtx = comtx;
    }

    public String getComtx() 
    {
        return comtx;
    }
    public void setMacID(Long macID)
    {
        this.macID = macID;
    }

    public Long getMacID() 
    {
        return macID;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("drid", getDrid())
            .append("drname", getDrname())
            .append("drllid", getDrllid())
            .append("type", getType())
            .append("ipport", getIpport())
            .append("com", getCom())
            .append("baudRate", getBaudRate())
            .append("dataBits", getDataBits())
            .append("stopBits", getStopBits())
            .append("parity", getParity())
            .append("cycle", getCycle())
            .append("timeout", getTimeout())
            .append("comtx", getComtx())
            .append("macID", getMacID())
            .toString();
    }
}
